package cn.b.sky.schedule.dao;

import cn.b.sky.schedule.model.TimeJobInfoCondition;
import cn.b.sky.schedule.model.TimedJobInfo;

import java.util.List;

public interface TimedJobDao {

  List<TimedJobInfo> selectTimedJobList(TimeJobInfoCondition timedJobInfo);

  int selectTomeJobCount(TimeJobInfoCondition timedJobInfo);

  TimedJobInfo selectTimedJob(String jobCode);

  void updateTimedJob(TimedJobInfo timedJobInfo);

  List<TimedJobInfo> selectEnableTimedJob(int enable);

  void insertTimedConfig(TimedJobInfo timedJobInfo);

  void deleteTimedJob(String jobCode);

  int checkTimedJob(String jobCode);

}
